/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.ShopBankCard;

import java.util.List;

/**
 * 商家提现获取信息
 *
 * @author YXF
 *  * @date 2020-04-07 14:22:08
 */
public interface ShopBankCardService extends IService<ShopBankCard> {


    /**
     * 设置店铺默认银行卡号
     * @param shopBankCardId 店铺银行卡号id
     * @param shopId 店铺id
     */
    void setDefault(Long shopBankCardId, Long shopId);



    /**
     * 批量新增银行账户并提交开店申请
     * @param shopBankCards
     * @param shopId
     * @param employeeId
     */
    void insertBatchAndSubmitApply(List<ShopBankCard> shopBankCards, Long shopId, Long employeeId);

    /**
     * 批量新增结算银行账户
     * @param shopBankCardList
     * @param shopId
     */
    void saveBatchByShopId(List<ShopBankCard> shopBankCardList, Long shopId);

    /**
     * 取消默认账号
     * @param shopBankCardId
     * @param shopId
     */
    void setNotDefault(Long shopBankCardId, Long shopId);

    /**
     * 更新店铺银行卡信息
     * @param shopBankCard
     * @param shopId
     */
    void updateByShopId(ShopBankCard shopBankCard, Long shopId);

    /**
     * 添加银行卡信息
     * @param shopBankCard
     * @return
     */
    Long insertSelective(ShopBankCard shopBankCard);
}
